16. 右转
向
car.py
添加一个
turn_right()
函数
你需要利用这个 car.py 文件和 notebook 完成下列任务:
-
该任务有几种完成方式。 我建议看一下
turn_left()
中的代码,或者使用这个函数。 - 不要忘记,拐弯时必须更新状态!
-
在 notebook (.ipynb) 中测试你的
turn_right()
函数。具体方法为:在车辆移动时对其进行可视化操作,并输出其状态,查看是否符合你的期望!
Workspace
This section contains either a workspace (it can be a Jupyter Notebook workspace or an online code editor work space, etc.) and it cannot be automatically downloaded to be generated here. Please access the classroom with your account and manually download the workspace to your local machine. Note that for some courses, Udacity upload the workspace files onto https://github.com/udacity , so you may be able to download them there.
Workspace Information:
- Default file path:
- Workspace type: jupyter
- Opened files (when workspace is loaded): n/a